package cn.hou.java.designpattern._09proxy;

public class Test01 {
	
	public static void main(String[] args) {
		//为目标对象创建代理对象(动态代理)
		ProxyDynamic pd=new ProxyDynamic(new UserDaoImpl());
		UserDao proxyObject = (UserDao) pd.getProxyObject();//获取代理对象
		proxyObject.save();
		
		
		
		//cglib代理
	}

}
